home *** CD-ROM | disk | FTP | other *** search
- /*
- File: OutgoingLetterStream.h
-
- Contains: xxx put contents here xxx
-
- Written by: Tim Harnett
-
- Copyright: © 1995 by Apple Computer, Inc., all rights reserved.
-
- Change History (most recent first):
-
- <2> 1/27/95 TMH handle unresolved recipients
- <1> 1/13/95 TMH abstract class for outgoing letter
- <1> 1/13/95 TMH abstract class for outgoing letter
- 1/11/95 TMH xxx put comment here xxx
-
- To Do:
- */
-
- #ifndef __OutgoingLetterStream__
- #define __OutgoingLetterStream__
-
- class TMSAMSlot;
-
- #ifndef __OCEMail__
- #include "OCEMail.h"
- #endif
-
- //--------------------------------------------
- // C O u t g o i n g L e t t e r S t r e a m
- //--------------------------------------------
-
- class CUnpackedDSSpec;
-
- class COutgoingLetterStream {
- public:
- COutgoingLetterStream(TMSAMSlot* msamSlot);
-
-
- //---------------
- // Letter Header
- //---------------
-
- virtual void WriteSendDate(MailTime& utcTime);
- virtual void WriteSubject(StringPtr subject);
-
- //------------
- // Recipients
- //------------
-
- virtual void WriteResolvedRecipient(CUnpackedDSSpec& recipient,short recipientType,short recipientCount,Boolean more);
- virtual void WriteResolvedRecipient(StringPtr recipient,short recipientType, short recipientCount,Boolean more);
-
- virtual void BeginUnResolvedRecipients(short recipientType);
- virtual void EndUnResolvedRecipients(short recipientType);
-
- virtual void WriteUnResolvedRecipient(CUnpackedDSSpec& recipient,short recipientType,long recipientCount);
- virtual void WriteUnResolvedRecipient(StringPtr recipient,short recipientType,long recipientCount);
-
-
- //----------
- // Content
- //---------
-
- virtual void BeginBody();
- virtual void EndBody();
-
- void WriteBodyStr(char* str);
- void WriteBodyStr(StringPtr str);
-
- virtual void WriteBodyText(char* text,long textLen,Boolean more);
-
- virtual void WritePict(void* pictData,long pictDataLen,Boolean more);
- virtual void WriteSound(void* soundData,long soundDataLen,Boolean more);
- virtual void WriteMovie(void* movieData,long movieDataLen,Boolean more);
-
-
- //----------------------------
- // Nested (forwarded) Letters
- //----------------------------
-
- virtual void BeginNestedLetter();
- virtual void EndNestedLetter();
-
- virtual void WriteNestedSendDate(MailTime& utcTime);
- virtual void WriteNestedSubject(StringPtr subject);
-
- virtual void BeginNestedRecipients(short recipientType);
- virtual void EndNestedRecipients(short recipientType);
-
- virtual void WriteNestedRecipient(CUnpackedDSSpec& recipient,short recipientType,short recipientCount);
- virtual void WriteNestedRecipient(StringPtr recipient,short recipientType, short recipientCount);
-
-
- private:
- TMSAMSlot* fMSAMSlot;
- };
-
- #endif __OutgoingLetterStream__